﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace client
{
    class Menu_Control
    {

        private int Level;
        private bool SomeMenu;//inside some menu

        public Menu_Control()
        {
            this.Level = -1;
            this.SomeMenu = false;
        }

        // -1 not accepted yet
        // returns 0 if not connected
        // 1 if in main menue
        // 2 if in subforum
        // 3 in some thread
        // 4 if in some menu
        // if in some menu use the position

        public int get_status()
        {
            if (SomeMenu == false)
                return Level;
            return 4;
        }


        public int getPosition()
        {
            return this.Level;
        }

        public void Entered_Menu()
        {
            this.SomeMenu = true;
        }

        public void Out_Menu()
        {
            this.SomeMenu = false;
        }

        public Boolean IsinMenu()
        {
            return this.SomeMenu;
        }

        public void LevelUP()
        {
            this.Level++;
        }

     
        public void LevelDown()
        {
            this.Level--;
        }

        public void Reset_Menu()
        {
            this.Level = 1;
        }
    }
}